package com.xbongbong.paas.pojo.vo;

import com.xbongbong.paas.field.MultiUnitItemPoJo;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import com.xbongbong.pro.formdata.pojo.SaasSpecialParamPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * @author: wufeng
 * @date: 2018/12/13 14:23
 * @desrcption: 关联查询关联数据封装对象
 */
@Getter
@Setter
@ToString
public class LinkResultDataDTO extends BaseDTO {

    private static final long serialVersionUID = 7426748480922046272L;
    /**
     * 应用id
     */
    @NotNull(message = "应用id不能为空")
    private Long appId;

    @NotNull(message = "菜单id不能为空")
    @Getter(onMethod_ = {@QueryIgnore})
    private Long menuId;

    @NotNull(message = "表单id不能为空")
    @Getter(onMethod_ = {@QueryIgnore})
    private Long formId;

    @NotNull(message = "表单数据id不能为空")
    private Long dataId;

    /**
     * saas标记
     */
    private Integer saasMark;

    /**
     * 业务类型
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer businessType;
    /**
     * 子业务类型
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer subBusinessType;

    @Getter(onMethod_ = {@QueryIgnore})
    private SaasSpecialParamPojo saasSpecialParamPojo;

    /**
     * 查询负责人团队
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Boolean searchUserTeam;
    /**
     * 单位map
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Map<String, String> unitMap;
    /**
     * 单位组map
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Map<Long, MultiUnitItemPoJo> groupBaseUnitMap;

    /**
     * 1：打印调用详情接口，0或者空则是非打印
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer isPrint;
}
